package com.hq.service.impl;

import com.hq.bean.Goods;
import com.hq.dao.GoodsDao;
import com.hq.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Resource
    GoodsDao goodsDao;


    @Override
    public List list() {
        return goodsDao.list();
    }

    @Override
    public List findallbid() {
        return goodsDao.findallbid();
    }

    @Override
    public int addGoods(Goods goods) {
        return goodsDao.addGoods(goods);
    }

    @Override
    public int delids(String id) {
        return goodsDao.delids(id);
    }

    @Override
    public Goods findgoods(Integer id) {
        return goodsDao.findgoods(id);
    }

    @Override
    public int updGoods(Goods goods) {
        return goodsDao.updGoods(goods);
    }
}
